package com.clj.cloud.authorization_server.exception;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;

public class CustomOauthExceptionSerializer extends StdSerializer<CustomOauthException> {

	public CustomOauthExceptionSerializer() {
        super(CustomOauthException.class);
    }
	
	@Override
	public void serialize(CustomOauthException value, JsonGenerator gen,
			SerializerProvider provider) throws IOException {
		gen.writeObject(value.getResult());
	}

	
}
